<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>腕带</title>
		<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="css/wandai.css" />
		<link rel="stylesheet" type="text/css" href="css/reset.css" />

	</head>
	<body style="min-width: 1400px;">
		<form class="layui-form find">
			<div class="layui-form-item">
				<label class="layui-form-label">查询:</label>
				<div class="layui-input-block">
					<input type="text" name="keyword" placeholder="请输入关键字" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">状态:</label>
				<div class="layui-input-block">
					<select name="interest">
						<option value="2">未打印</option>
						<option value="1">已打印</option>
					</select>
				</div>
			</div>
			<!-- <div class="layui-form-item" style="margin-left: 20px;">
				<button type="button" class="layui-btn" lay-submit="" lay-filter="findwd">查询</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div> -->
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit lay-filter="findwd">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
		<table border="1" cellspacing="" cellpadding="">

			<div id="view" class="view clearfix"></div>
		</table>

		<script type="text/html" id="toolbarDemo">
			<div class="print">
		        
		        <span>已选中<span class="num">0</span>条记录</span>
		        <button class="layui-btn layui-btn-sm getCheckData" lay-event="getCheckData">打印<i class="layui-icon layui-icon-print"></i></button>
		    </div>
		</script>

		<table id="demo" lay-filter="test"></table>
		<div id="test2"></div>



		<div class="layui-tab layui-tab-brief" lay-filter="tab">

			<div class="layui-tab-content">
				<table style="clear: both" class="layui-hide" id="table" lay-filter="test"></table>

				<script type="text/html" id="toolbarDemo">
					<div class="print">
		                
		                <span>已选中<span class="num">0</span>条记录</span>
		                <button class="layui-btn layui-btn-sm getCheckData" lay-event="getCheckData">打印<i class="layui-icon layui-icon-print"></i></button>
		            </div>
		        </script>
			</div>
		</div>
		<div style="display: none" class="codeBox">
			<table class="box">
				<tbody>

				</tbody>
			</table>
		</div>
		<!-- 打印预览 -->
		<div id="preview" style="z-index: 99999; display: none;">
			<ul>
				<div id="view2"></div>
			</ul>
		</div>




	</body>
	<!-- 模板渲染 -->
	<script id="demo2" type="text/html">

		{{#  layui.each(d, function(index, item){ }}
		  <div class="item clearfix">
			<div class="fl"><div class="bcTarget"> </div></div>
			<div class="fr">
				<li>
					<span>名称:{{ item.patName }}</span>
					<span>性别:{{ item.patSex }}</span>
					<!-- <span>患者id:{{ item.patientId }}</span> -->
				</li>
				<li>
					<span>年龄:{{ item.patAge }}</span>
					<span>床号:{{ item.bedCode }}</span></li>
				<li>
					<!-- <span>住院号:{{ item.admid }}</span> -->
					<span>入院时间:{{ item.admDate }}</span>
				</li>
				<li><span>护理级别:{{ item.nursingLevel }}</span></li>
			</div>
		  </div>
		  {{#  }); }}
		  {{#  if(d.length === 0){ }}
			无数据
		  {{#  } }} 
	</script>

	<script id="demo" type="text/html">
		{{#  layui.each(d.data.list, function(index, item){ }}
		  <tr>
			<td>{{item.patientId}}</td>
			<td>{{item.printId}}</td>
			<td>{{item.patName}}</td>
			<td>{{item.patSex}}</td>
			 </tr>
		  {{#  }); }}
		  {{#  if(d.data.list.length === 0){ }}
			无数据
		  {{#  } }}  
	</script>
	<script src="lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/global.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery.qrcode.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery-barcode.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/jquery.jqprint-0.3.js" type="text/javascript" charset="utf-8"></script>
	<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
	<script type="text/javascript" src="./js/common.js"></script>
	<script src="js/wandai.js" type="text/javascript" charset="utf-8"></script>

</html>
